import { getStream } from '../Core/connect'

export const refesh = () =>{
    const stream = getStream()
    const str = {function: 'refresh'}
    stream.emitUIInteraction(str)
}
export const setElevationUrl = (url:string) =>{
    const stream = getStream()
    const str = {function: 'setElevationUrl',option:`${url}`}
    stream.emitUIInteraction(str)
}
export const setMapUrl = (url:string) =>{
    const stream = getStream()
    const str = {function: 'setMapUrl',option:`${url}`}
    stream.emitUIInteraction(str)
}